package controller.service
{
	import flash.events.Event;
	
	import model.vo.MenuItemVO;
	
	import subumbo.micro.controller.AbstractLoader;
	import subumbo.micro.model.Model;

	public class StartupService extends AbstractLoader
	{	
		public function StartupService(url:String)
		{
			super(url);	
		}
		
		override protected function onComplete(e:Event):void
		{
			var _model:Model = Model.instance;
			var xml:XML = XML(data)
			
			var menuItem:MenuItemVO; 
			for each(var item:XML in xml..startMenuItem)
			{
				menuItem = new PageVO();
				menuItem.label = item.toString();
				_model.startMenuItems.push(menuItem);
			}
			
			super.onComplete(e);
		}	
	}
}